<template>
  <div class="header" @click="toSearch">
    <div class="inner">
      <icon type="search"
            size="16">
      </icon>
      <span>搜索</span>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    toSearch () {
      wx.navigateTo({ url: '/pages/search/main' })
    }
  }
}
</script>

<style lang="less" scoped>
.header {
  height: 100rpx;
  background-color: #eb4450;
  padding: 20rpx 16rpx;
  box-sizing: border-box;
  .inner {
    background-color: #fff;
    border-radius: 4rpx;
    height: 60rpx;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    icon {
      margin: 6rpx 16rpx 0 0;
    }
  }
}
</style>